package com.cavy.platform.server.domain.message;

import com.cavy.platform.server.domain.job.JobAction;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.lang.reflect.Method;

@Data
@AllArgsConstructor
public class JobRunningMessageSubscribers {
    private Class<? extends JobAction> clazz;
    private Method method;
    private String messageType;

    public boolean support(String type) {
        return messageType.equalsIgnoreCase(type);
    }
}
